package com.dhnsoft.education.service.article;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhnsoft.education.entity.article.BusinessService;
import com.dhnsoft.education.entity.article.EduArticle;
import com.dhnsoft.education.entity.article.vo.ArticleReq;

import java.util.List;

/**
 * <p>
 * 文章表 服务类
 * </p>
 *
 * @author zsr
 * @since 2022-01-05
 */
public interface EduArticleService extends IService<EduArticle>, BusinessService {

    void pageQuery(Page<EduArticle> page, ArticleReq articleReq);

    List<EduArticle> getFourList();

    List<EduArticle> myQueryPage(long current, long limit, String categoryId);

    /**
     * 更新浏览量
     * @param id
     */
    void updatePageViewCount(String id);

    List<EduArticle> getHotArticle();
}
